home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 2 / Atari Mega Archive CD - Volume 2.iso / linux / src / ext2fs05.dgz / e2fs.diffs
Encoding:
Text File  |  1994-08-08  |  2.0 KB  |  85 lines

  1. diff -cr e2fsprogs-0.5a/lib/ext2fs/bitops.c e2fsprogs-0.5a.new/lib/ext2fs/bitops.c
  2. *** e2fsprogs-0.5a/lib/ext2fs/bitops.c    Mon Jan  3 13:30:35 1994
  3. --- e2fsprogs-0.5a.new/lib/ext2fs/bitops.c    Sun Aug  7 10:58:29 1994
  4. ***************
  5. *** 15,21 ****
  6.   
  7.   #include "ext2fs.h"
  8.   
  9. ! #if (!defined(__i386__) && !defined(__i486__) && !defined(__i586__))
  10.   
  11.   /*
  12.    * For the benefit of those who are trying to port Linux to another
  13. --- 15,22 ----
  14.   
  15.   #include "ext2fs.h"
  16.   
  17. ! #if (!defined(__i386__) && !defined(__i486__) && !defined(__i586__) \
  18. !      && !defined(__mc68000__))
  19.   
  20.   /*
  21.    * For the benefit of those who are trying to port Linux to another
  22. ***************
  23. *** 69,75 ****
  24.       mask = 1 << (nr & 0x1f);
  25.       return ((mask & *ADDR) != 0);
  26.   }
  27. ! #endif    /* !i386 */
  28.   
  29.   /*
  30.    * These are routines print warning messages; they are called by
  31. --- 70,76 ----
  32.       mask = 1 << (nr & 0x1f);
  33.       return ((mask & *ADDR) != 0);
  34.   }
  35. ! #endif    /* !x86 or mc680x0 */
  36.   
  37.   /*
  38.    * These are routines print warning messages; they are called by
  39. diff -cr e2fsprogs-0.5a/lib/ext2fs/bitops.h e2fsprogs-0.5a.new/lib/ext2fs/bitops.h
  40. *** e2fsprogs-0.5a/lib/ext2fs/bitops.h    Mon Jan  3 13:30:18 1994
  41. --- e2fsprogs-0.5a.new/lib/ext2fs/bitops.h    Sun Aug  7 11:11:28 1994
  42. ***************
  43. *** 99,104 ****
  44. --- 99,138 ----
  45.   
  46.   #endif    /* i386 */
  47.   
  48. + #ifdef __mc68000__
  49. + _INLINE_ int set_bit(int nr,void * addr)
  50. + {
  51. +     char retval;
  52. +     __asm__ __volatile__ ("bfset %2@{%1:#1}; sne %0"
  53. +          : "=d" (retval) : "d" (nr), "a" (addr));
  54. +     return retval;
  55. + }
  56. + _INLINE_ int clear_bit(int nr, void * addr)
  57. + {
  58. +     char retval;
  59. +     __asm__ __volatile__ ("bfclr %2@{%1:#1}; sne %0"
  60. +          : "=d" (retval) : "d" (nr), "a" (addr));
  61. +     return retval;
  62. + }
  63. + _INLINE_ int test_bit(int nr, const void * addr)
  64. + {
  65. +     char retval;
  66. +     __asm__ __volatile__ ("bftst %2@{%1:#1}; sne %0"
  67. +          : "=d" (retval) : "d" (nr), "a" (addr));
  68. +     return retval;
  69. + }
  70. + #endif
  71.   _INLINE_ void ext2fs_mark_block_bitmap(ext2_filsys fs, char *bitmap,
  72.                           int block)
  73.   {
  74.